package com.sinosoft.domain;

import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName strategy_rank
 */
@Data
public class StrategyRank implements Serializable {
    /**
     * 
     */
    private Long id;

    /**
     * 
     */
    private Long destId;

    /**
     * 
     */
    private String destName;

    /**
     * 
     */
    private Long strategyId;

    /**
     * 
     */
    private String strategyTitle;

    /**
     * 
     */
    private Integer type;

    /**
     * 
     */
    private Date statisTime;

    /**
     * 
     */
    private Long statisnum;

    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        StrategyRank other = (StrategyRank) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDestId() == null ? other.getDestId() == null : this.getDestId().equals(other.getDestId()))
            && (this.getDestName() == null ? other.getDestName() == null : this.getDestName().equals(other.getDestName()))
            && (this.getStrategyId() == null ? other.getStrategyId() == null : this.getStrategyId().equals(other.getStrategyId()))
            && (this.getStrategyTitle() == null ? other.getStrategyTitle() == null : this.getStrategyTitle().equals(other.getStrategyTitle()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatisTime() == null ? other.getStatisTime() == null : this.getStatisTime().equals(other.getStatisTime()))
            && (this.getStatisnum() == null ? other.getStatisnum() == null : this.getStatisnum().equals(other.getStatisnum()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDestId() == null) ? 0 : getDestId().hashCode());
        result = prime * result + ((getDestName() == null) ? 0 : getDestName().hashCode());
        result = prime * result + ((getStrategyId() == null) ? 0 : getStrategyId().hashCode());
        result = prime * result + ((getStrategyTitle() == null) ? 0 : getStrategyTitle().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatisTime() == null) ? 0 : getStatisTime().hashCode());
        result = prime * result + ((getStatisnum() == null) ? 0 : getStatisnum().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", destId=").append(destId);
        sb.append(", destName=").append(destName);
        sb.append(", strategyId=").append(strategyId);
        sb.append(", strategyTitle=").append(strategyTitle);
        sb.append(", type=").append(type);
        sb.append(", statisTime=").append(statisTime);
        sb.append(", statisnum=").append(statisnum);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}